import { Component } from 'react'
import { View, Text } from '@tarojs/components'

import './index.scss'

import NavBar from '@/components/NavBar'
import Tabbar from '@/components/Tabbar'

export default class Index extends Component {
  componentWillMount() {}

  componentDidMount() {}

  componentWillUnmount() {}

  componentDidShow() {}

  componentDidHide() {}

  handlerChangeTab() {
    console.log(123)
  }

  render() {
    return (
      <>
        <NavBar></NavBar>
        <View>
          <Text>Hello world!</Text>

          <Tabbar changeTab={this.handlerChangeTab.bind(this)}></Tabbar>
        </View>
      </>
    )
  }
}
